﻿#ifndef PRODUCTCOUNTTABLEVIEW_H
#define PRODUCTCOUNTTABLEVIEW_H

#include "mytableview.h"
#include "productcountstandarditemmodel.h"
#include "productpicker.h"

class ProductCountTableView : public MyTableView
{
    Q_OBJECT
public:
    explicit ProductCountTableView(QWidget *parent = nullptr);

    void setSelectionRow();

    void clear();

    void initHiddenState();

    void setListPushButton(ListPushButton *listPushButton);

    QList<Product*> currentProducts();

signals:
    void updateTotalValue(int totalCount, double totalMoney);

public slots:

private:
    ProductCountStandardItemModel *model;
    ProductPicker productPicker;
};

#endif // PRODUCTCOUNTTABLEVIEW_H
